<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/xhtml/templates/layout.xhtml">

	<ui:define name="title">#{msgs.RechercheOuvrage_tabTitle}</ui:define>

	<ui:define name="entete">
		<h:form id="enteteForm" styleClass="container-vertically-centered">
			<p:toolbar id="enteteTolBar">
				<p:toolbarGroup id="enteteTolBarGroup" align="left">
					<h:outputText value="#{msgs.RechercheOuvrage_title}" />
				</p:toolbarGroup>
			</p:toolbar>
		</h:form>
	</ui:define>

	<ui:define name="bibliothequeSearchOuvrage_textField">
		<h:form styleClass="container-vertically-centered">
			<h:panelGrid columns="1" styleClass="bibliothequeSearchOuvrage_textField" cellpadding="10">
				<p:fieldset legend="#{msgs.RechercheOuvrage_fieldset}"> 
						<h:panelGroup id="bibliothequeSearchOuvrage_rechercheSimpleGroup">
							<h:panelGrid id="bibliothequeSearchOuvrage_rechercheSimpleGrid" columns="6" cellpadding="10">

								<h:outputLabel for="searchCodeIsbn" value="#{msgs.RechercheOuvrage_workCodeIsbn}" />
								<p:inputText id="searchCodeIsbn" value="#{manageBeanOuvrage.rechercheOuvrage.searchCodeIsbn}" label="Code isbn">
									<f:validateRequired />
									<p:ajax event="blur" update="msgSearchCodeIsbn" />
								</p:inputText>
								<p:message id="msgSearchCodeIsbn" for="searchCodeIsbn" />

								<h:outputLabel for="searchAuteur" value="#{msgs.RechercheOuvrage_workAuthor}" />
								<p:inputText id="searchAuteur" value="#{manageBeanOuvrage.rechercheOuvrage.searchAuteur}" label="Auteur">
									<f:validateRequired />
									<p:ajax event="blur" update="msgSearchAuteur" />
								</p:inputText>
								<p:message id="msgSearchAuteur" for="searchAuteur" />
								
								<h:outputLabel for="genre" value="#{msgs.RechercheOuvrage_workKind}" />
								<p:inputText id="genre" value="#{manageBeanOuvrage.rechercheOuvrage.searchGenre}" label="Genre">
									<f:validateRequired />
									<p:ajax event="blur" update="msgGenre" />
								</p:inputText>
								<p:message id="msgGenre" for="genre" />
								
								<h:outputLabel for="titre" value="#{msgs.RechercheOuvrage_workTitle}" />
								<p:inputText id="titre" value="#{manageBeanOuvrage.rechercheOuvrage.searchTitre}" label="Titre">
									<f:validateRequired />
									<p:ajax event="blur" update="msgTitre" />
								</p:inputText>
								<p:message id="msgTitre" for="titre" />

							</h:panelGrid>
						</h:panelGroup>
					</p:fieldset>
				<h:panelGroup id="bibliothequeSearchOuvrage_optionButtonGroup">
					<h:panelGrid id="bibliothequeSearchOuvrage_optionButtonGrid" columns="7" cellpadding="5">

						<p:commandButton value="#{msgs.RechercheOuvrage_search}" action="#{manageBeanOuvrage.search}" style="width:110px; height: 38px; font-size: 11px;" ajax="false" />
						<br />
						<p:commandButton value="#{msgs.RechercheOuvrage_searchFinished}" action="#{manageBeanOuvrage.searchFini}" style="width:110px; height: 38px; font-size: 11px;" ajax="false" />
						
					</h:panelGrid>
				</h:panelGroup>
			</h:panelGrid>
		</h:form>
	</ui:define>
	
	<ui:define name="pieddepage">
		<h:form id="pieddepageForm" styleClass="container-vertically-centered">
			<p:toolbar id="pieddepageTolBar">
				<p:toolbarGroup id="pieddepageTolBarGroup" align="left">
					<h:outputText value="#{msgs.RechercheOuvrage_underTitle}" />
				</p:toolbarGroup>
			</p:toolbar>
		</h:form>
	</ui:define>

</ui:composition>